package com.qf.aopLog4j;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Component;
//AOP进行日志管理，环绕式
//电脑工厂类
@Component //将当前类交给spring管理
public class ComputerFactory implements IComputerFactory{
    private Logger logger=Logger.getLogger(ComputerFactory.class);
    //切入点
    public String saleComputer(String args) {
        logger.info("method begin"+args);

        logger.info("method end");
        return "电脑";
    }
}
